f79b226ef77c7ad3f6ae19f3f99cce953eb39847,src/test/java/org/rococoa/okeydoke/examples/PickleTest.java,PickleTest,scenarios_from_feature,#,20
Before Change
Feature feature = pickle.feature("Addition").inOrder("to avoid silly mistakes").
asA("math idiot").
iWant("to be told the sum of two numbers");
Scenario addition = feature.scenario("Add two numbers");
addition.given("I have a calculator");
addition.given("I have entered", 42, "into the calculator");
addition.and("I have entered", 99, "into the calculator");
addition.when("I press add");
addition.then("the result should be", add(42, 99));
Scenario negativeAddition = feature.scenario("Add a positive to a negative number");
After Change
asA("math idiot").
iWant("to be told the sum of two numbers");
addition(feature.scenario("Add two numbers"), 42, 99);
addition(feature.scenario("Add a positive to a negative number"), 42, -99);
}